﻿using LPTask.Interfaces;
using LPTask.Interfaces.Views;

namespace LPTask.UI
{
    public class WinFormsViewManager : IViewManager
    {
        private static IViewManager _instance;

        private GeneralView _generalView;

        private UserMessageView _userMessageView;

        public static IViewManager Instance
        {
            get { return _instance ?? (_instance = new WinFormsViewManager()); }
        }

        private WinFormsViewManager()
        {
        }

        public IGeneralView GeneralView
        {
            get { return _generalView ?? (_generalView = new GeneralView()); }
        }

        public IResultView CreateResultView()
        {
            return new ucResult();
        }

        public IUserMessageView UserMessageView
        {
            get { return _userMessageView ?? (_userMessageView = new UserMessageView()); }
        }
    }
}